/*
	Package for data management.
*/
package datautils

import (
	"fmt"
	"os"
	"io/ioutil"
)

/*
	TODO: Actually the same as echo "something" > data.txt
*/
func Write(str string) {

	var data []byte

	var mode os.FileMode

	var filepath string

	data = []byte(str)

	mode = 0666

	filepath = "./data.txt"

	ioutil.WriteFile(filepath, data, mode)

	fmt.Println("Written to data.txt")

}
